package com.acme;



public class Arrays {
	public static void main(String[] args) {
		int [] array = new int[5];
		System.out.println(array[2]); // "0" will be printed, elements of array are initialized with type default value
		array[0] = 1;
		array[1] = 2;
		array[2] = 3;
		array[3] = 4;
		array[4] = 5;
		System.out.println(array[2]); // Now it is 3
		System.out.println(array.length); // "5" will be printed
		array[5] = 6;   // Exception! No such element
	}
}
